package com.eding.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eding.dto.EmployeeDTO;
import com.eding.dto.EmployeeLoginDTO;
import com.eding.dto.EmployeePageQueryDTO;
import com.eding.dto.PasswordEditDTO;
import com.eding.entity.Employee;
import com.eding.result.PageResult;

public interface EmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     * @param employeeDTO
     */
    void saveEmp(EmployeeDTO employeeDTO);

    /**
     * 员工分页查询
     * @param queryDTO
     * @return
     */
    PageResult getEmpPage(EmployeePageQueryDTO queryDTO);

    /**
     * 启用/禁用 员工账号
     * @param status
     * @param id
     */
    void updateStatus(Integer status, Long id);

    /**
     * 修改员工信息
     * @param employeeDTO
     * @return
     */
    void updateEmp(EmployeeDTO employeeDTO);

    /**
     * 修改员工密码
     * @param passwordEditDTO
     * @return
     */
    boolean editPassword(PasswordEditDTO passwordEditDTO);
}
